Skip to content

Conversation

@rjrudin
Copy link
Contributor

@rjrudin rjrudin commented Oct 16, 2025

Just doing double quote replacement.

@rjrudin rjrudin requested a review from anu3990 as a code owner October 16, 2025 17:19
Copilot AI review requested due to automatic review settings October 16, 2025 17:19
@github-actions
Copy link

github-actions bot commented Oct 16, 2025

Copyright Validation Results
Total: 19 | Passed: 19 | Failed: 0 | Skipped: 0 | at: 2025-10-16 22:23:00 UTC | commit: 9b3ab77

✅ Valid Files

  • lib/basic-loader.js
  • lib/documents.js
  • lib/endpoint-proxy.js
  • lib/endpointDeclarationValidator.js
  • lib/internal.js
  • lib/marklogic.js
  • lib/mlutil.js
  • lib/operation.js
  • lib/patch-builder.js
  • lib/plan-builder-base.js
  • lib/plan-builder.js
  • lib/proxy-generator.js
  • lib/query-builder.js
  • lib/requester.js
  • lib/resources-exec.js
  • lib/responder.js
  • lib/rows.js
  • lib/www-authenticate-patched/user-credentials.js
  • lib/www-authenticate-patched/www-authenticate.js

✅ All files have valid copyright headers!

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

First batch of lint-oriented refactors introducing single quotes and preferring const/let over var. Key changes focus on:

  • Replacing most var declarations with const/let and converting double quotes to single quotes.
  • Updating ESLint rules to enforce no-var and prefer-const (plus related stylistic consistency).

Reviewed Changes

Copilot reviewed 33 out of 33 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
lib/www-authenticate-patched/www-authenticate.js Converted var to const/let and single-quoted strings.
lib/www-authenticate-patched/user-credentials.js Updated variable declarations and string quotes.
lib/www-authenticate-patched/parsers.js Replaced var with let/const and added semicolons.
lib/www-authenticate-patched/md5.js Switched var to const.
lib/values.js Replaced var with const/let across function logic.
lib/values-builder.js Modernized declarations (var → const/let).
lib/transforms.js Updated variable declarations and style.
lib/transactions.js Modernized declarations and spacing.
lib/server-exec.js Replaced var with const/let and updated string style.
lib/rows.js Updated import style and variable declarations.
lib/rest-server-properties.js Updated declarations to const.
lib/responder.js Large-scale var → const/let refactor and property access tweaks.
lib/resources-exec.js Modernized declarations; adjusted error strings.
lib/resources-config.js Updated declarations and error handling strings.
lib/requester.js Refactored auth/request helpers to const/let.
lib/query-builder.js Extensive var → const/let updates across builder utilities.
lib/proxy-generator.js Adjusted error messages (template literals to plain strings).
lib/plan-builder.js Minor string style update.
lib/plan-builder-base.js Converted template literal without interpolation to plain string.
lib/patch-builder.js Modernized internal builder helper declarations.
lib/optional.js Updated variable declaration to const.
lib/operation.js Modernized operation helper internals.
lib/mlutil.js Refactored utility helpers to const/let.
lib/mllog.js Updated util import to const.
lib/marklogic.js Modernized module imports and declarations.
lib/internal.js Normalized imports (single quotes) and const usage.
lib/graphs.js Partial modernization (some var remain, duplicate import).
lib/extlibs.js Updated declarations and maintained logic.
lib/endpointDeclarationValidator.js Converted JSON schema quotes/style.
lib/endpoint-proxy.js Minor error message & style updates.
lib/documents.js Large-scale modernization of declarations.
lib/basic-loader.js Simplified error messages (removed unused template literals).
eslint.config.js Added no-var and prefer-const enforcement rules.

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@rjrudin rjrudin force-pushed the feature/24763-lint-2 branch from 1523571 to c8a9b1e Compare October 16, 2025 17:28
stevebio
stevebio previously approved these changes Oct 16, 2025
Copy link
Collaborator

@stevebio stevebio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reasonable.

Copy link
Contributor

@anu3990 anu3990 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Waiting for the second jenkins run to complete.

@anu3990
Copy link
Contributor

anu3990 commented Oct 16, 2025

The tests failed again. Please check the following two - test-basic/endpoint-caller.js:84:35 and test-basic/service-caller.js:84:35

@rjrudin rjrudin force-pushed the feature/24763-lint-2 branch from c8a9b1e to f6e315f Compare October 16, 2025 20:17
@anu3990
Copy link
Contributor

anu3990 commented Oct 16, 2025

Recent updates did not fix the test failures. Tests are still failing.

@anu3990 anu3990 self-requested a review October 16, 2025 21:36
anu3990
anu3990 previously approved these changes Oct 16, 2025
@rjrudin rjrudin dismissed stale reviews from anu3990 and stevebio via 9b3ab77 October 16, 2025 22:22
@rjrudin rjrudin force-pushed the feature/24763-lint-2 branch from f6e315f to 9b3ab77 Compare October 16, 2025 22:22
@rjrudin rjrudin changed the title MLE-24763 First batch of lint fixes MLE-24763 Lint: Replacing double quotes Oct 16, 2025
@rjrudin
Copy link
Contributor Author

rjrudin commented Oct 17, 2025

Still getting 7 test failures when just replacing double quotes with single quotes, which makes no sense. Going to open a new PR.

@rjrudin rjrudin closed this Oct 17, 2025
@rjrudin rjrudin deleted the feature/24763-lint-2 branch October 17, 2025 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants